<!-- <template>
	<view>
		<view class="list">
			<view class="list-call">
				<view class="" style="font-size: 22px;color:#5473e8;">地址</view>
				<input class="u-input" type="text" v-model="baseIp" maxlength="32" placeholder="请输入ip和端口号" value="admin"/>
			</view>
			
			
			<view class="button"  @click="submit()"><text>保存</text></view>
		</view>
	</view>
</template>

<script>

	export default{
		
		data(){
			return{
				baseIp:'',
			}
		},
		onLoad() {
			const value = uni.getStorageSync('baseUrl')
			this.baseIp=value
		},
		methods:{
			submit(){
				try {
					// https://aidex.vip/api
					uni.setStorageSync('baseUrl', this.baseIp);
					// uni.setStorageSync('baseUrl', 'http://localhost:8092/wms');
				} catch (e) {
					// error
				}
				this.$u.toast('ip已经设置为:'+uni.getStorageSync('baseUrl'));
				//刷新生效
				this.$router.go(0)
			},
		}
	}
</script>
<style lang="scss">
@import 'index.scss';

	.logo {
		width: 80%;
		font-size:64rpx;
		color: #5473e8;
		margin: 80rpx auto 80rpx auto;
	}
	.list-call-icon{
		color: #ff0000;
	}
	.currentPhone-box{
		text-align: center;
		padding: 40rpx 80rpx;
		.number-text{
			color: #000000;
			font-size: 60rpx;
		}
		.other-text{
			color: #999999;
			font-size: 26rpx;
			padding: 20rpx 0;
		}
		.u-btn{
			margin: 30rpx auto;
		}
		.u-hairline-border{
		    border: 1px solid #fff;
		}
	}
	
	.register {
		display:inline-block;
		color: #5473e8;
		height: 40rpx;
		line-height: 40rpx;
		font-size: 28rpx;
		float:right;
		margin-top: 6rpx;
	}
	.register-link{
		float: right;
		padding: 0 16rpx;
	}
	.reg-link{
		display: inline-block;
		color: #5473e8;
	}
	.oauth2 {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		margin: 0rpx 100rpx 30rpx;
	
		image {
			height: 80rpx;
			width: 80rpx;
		}
	}
	.u-tabs{
		padding: 0 70rpx;
	}
</style> -->